@echo off
echo 启动 Cesium WebSocket 实时飞机轨迹系统...
echo.

echo 1. 启动 WebSocket 服务器...
start "WebSocket Server" cmd /k "node server.js"

echo 2. 等待服务器启动...
timeout /t 3 /nobreak > nul

echo 3. 启动前端应用...
start "Frontend App" cmd /k "npm run dev"

echo.
echo 项目启动完成！
echo.
echo WebSocket 服务器: ws://127.0.0.1:6088/uam/v2/ws/uam/channel/245
echo 前端应用: http://localhost:5173
echo 测试页面: test-ws.html
echo.
echo 按任意键退出...
pause > nul
